package com.xuetang9.t9.xinhuaxia.beans;

import javax.persistence.*;

@Table(name = "social_collection")
public class SocialCollection {
    /**
     * 收藏的帖子id
     */
    @Column(name = "p_id")
    private Integer pId;

    /**
     * 收藏者用户id
     */
    @Column(name = "p_collectuserid")
    private Integer pCollectuserid;

    /**
     * 获取收藏的帖子id
     *
     * @return p_id - 收藏的帖子id
     */
    public Integer getpId() {
        return pId;
    }

    /**
     * 设置收藏的帖子id
     *
     * @param pId 收藏的帖子id
     */
    public void setpId(Integer pId) {
        this.pId = pId;
    }

    /**
     * 获取收藏者用户id
     *
     * @return p_collectuserid - 收藏者用户id
     */
    public Integer getpCollectuserid() {
        return pCollectuserid;
    }

    /**
     * 设置收藏者用户id
     *
     * @param pCollectuserid 收藏者用户id
     */
    public void setpCollectuserid(Integer pCollectuserid) {
        this.pCollectuserid = pCollectuserid;
    }
}